package com.zzyl.mapper;

import com.zzyl.entity.Resource;
import com.zzyl.vo.MenuVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ResourceMapper {
    List<Resource> list(Resource resource);

    void insert(Resource resource);

    Resource selectByParentNo(@Param("parentResourceNo") String parentResourceNo);

    List<String> selectByUserId(Long id);

    List<MenuVo> selectMenuByUserId(Long userId);
}
